function install(Vue, vm) {
    // 秒杀活动
    let getSeckillActive = (params = {}) =>
        vm.$u.get('/plus.seckill.product/active', params);

    // 秒杀产品
    let getSeckillProduct = (params = {}) =>
        vm.$u.get('/plus.seckill.product/product', params);

    // 拼团活动
    let getAssembleActive = (params = {}) =>
        vm.$u.get('/plus.assemble.product/active', params);

    // 拼团产品
    let getAssembleProduct = (params = {}) =>
        vm.$u.get('/plus.assemble.product/product', params);

    // 拼团产品详情
    let getAssembleProductDetail = (params = {}) =>
        vm.$u.get('/plus.assemble.product/detail', params);

    // 首页获取优惠券
    let getCouponList = (params = {}) =>
        vm.$u.get('/index/getCouponList', params);

    // 首页获取新人专享优惠券
    let getNewcomerCouponList = (params = {}) =>
        vm.$u.get('/index/getNewPeopleCouponList', params);

    // 新人商品活动
    let getNewCustomGoodsList = (params = {}) =>
        vm.$u.get('/product.product/lists', params);

    // 一键领取优惠券
    let postReceiveList = (params = {}) =>
        vm.$u.post('/user.coupon/receiveList', params);

    // 单次领取优惠券
    let postReceiveOne = (params = {}) =>
        vm.$u.post('/user.coupon/receive', params);
    // 优惠券详情
    let getCouponDetail = (params = {}) =>
        vm.$u.get('/coupon.coupon/detail', params);

    // 助力活动
    let getBargainActive = (params = {}) =>
        vm.$u.get('/plus.bargain.product/active', params);

    // 助力产品列表
    let getBargainProduct = (params = {}) =>
        vm.$u.get('/plus.bargain.product/product', params);

    // 我的助力产品列表
    let getMyBargainlProduct = (params = {}) =>
        vm.$u.get('/plus.bargain.task/getTaskList', params);

    // 助力产品详情
    let getBargainDetail = (params = {}) =>
        vm.$u.get('/plus.bargain.product/detail', params);

    // 发起助力
    let postBargainTask = (params = {}) =>
        vm.$u.post('/plus.bargain.task/add', params);

    // 当前助力详情
    let getBargainTaskDetail = (params = {}) =>
        vm.$u.get('/plus.bargain.task/detail', params);

    // 当前助力详情
    let postUserCut = (params = {}) =>
        vm.$u.post('/plus.bargain.task/cut', params);
    // 助力说明
    let getBargainSetting = (params = {}) =>
    vm.$u.get('/plus.bargain.task/getSetting', params);
    // 欧洲杯参赛国
    let getCountryList = (params = {}) =>
        vm.$u.get('/european.european/getCountryList', params);
    // 提交欧洲杯国家
    let postGuessingChampion = (params = {}) =>
        vm.$u.post('/european.european/guessingChampion', params);
    // 比分赛事列表
    let getEuropeanMatchList = (params = {}) =>
        vm.$u.get('/european.european/getEuropeanMatchList', params);
    // 比分赛事列表
    let getUserPickingData = (params = {}) =>
        vm.$u.get('/european.european/getUserPickingData', params);
    // 比分列表
    let getEuropeanScoreList = (params = {}) =>
        vm.$u.get('/european.european/getEuropeanScoreList', params);
    // 我的比分列表
    let getMyGuessingScoreList = (params = {}) =>
        vm.$u.get('/european.european/getMyGuessingScoreList', params);
    // 提交比分
    let postGuessingScore = (params = {}) =>
        vm.$u.post('/european.european/guessingScore', params);
    // 欧洲杯活动规则
    let getEuropeanActivity = (params = {}) =>
        vm.$u.get('/european.european/getEuropeanActivity', params);

    return {
        getSeckillActive,
        getSeckillProduct,
        getAssembleActive,
        getAssembleProduct,
        getAssembleProductDetail,
        getCouponList,
        getNewcomerCouponList,
        getNewCustomGoodsList,
        postReceiveList,
        postReceiveOne,
        getBargainActive,
        getBargainProduct,
        getMyBargainlProduct,
        getBargainDetail,
        postBargainTask,
        getBargainTaskDetail,
        getBargainSetting,
        postUserCut,
        getCouponDetail,
        getCountryList,
        postGuessingChampion,
        getEuropeanMatchList,
        getUserPickingData,
        getMyGuessingScoreList,
        postGuessingScore,
        getEuropeanScoreList,
        getEuropeanActivity,
    };
}

export default install;
